////////////////////////////////////////////////////////////////////////////////
//
//  This program is free software; you can redistribute it and/or modify 
//  it under the terms of the GNU Lesser General Public License as published 
//  by the Free Software Foundation; either version 3 of the License, or (at 
//  your option) any later version.
//
//  This program is distributed in the hope that it will be useful, but 
//  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
//  or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 
//  License for more details.
//
//  You should have received a copy of the GNU Lesser General Public License 
//  along with this program; if not, see <http://www.gnu.org/copyleft/lesser.html>.
//
////////////////////////////////////////////////////////////////////////////////

package merapi.gps.model
{
import flash.net.registerClassAlias;

[RemoteClass( alias="merapi.gps.model.GPSInfo" )]
/**
 *  <code>GPSInfo</code> models data about the current GPS location. 
 *
 *  @see com.tesla.merapi.gps.messages.GPSMessage;
 *  
 *  @author Adam Flater - adamflater.net
 */
public class GPSInfo 
{
	
    //--------------------------------------------------------------------------
    //
    //  Properties
    //
    //--------------------------------------------------------------------------

    /**
     *  The position in latitude
     */
    [Bindable] public var latitude : Number = 0;
    
    /**
     *  The position in longitude
     */
    [Bindable] public var longitude : Number = 0;
    
    /**
     *  The direction in degree
     */
    [Bindable] public var direction : Number = 0;

    
    //--------------------------------------------------------------------------
    //
    //  Methods
    //
    //--------------------------------------------------------------------------
    
    /**
     *  Override of toString()
     */
    public function toString() : String
    {
    	return "GPSInfo - latitude: " + latitude + 
    					" longitude: " + longitude;
    }
    
} //  end class
} //  end package